package Day16;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Demo07 {
    public static void main(String[] args) throws IOException {
        File f = new File("C:\\Users\\刘娟\\Desktop\\aa.txt");
        System.out.println(f.getParentFile());//C:\Users\刘娟\Desktop
//        FileInputStream fis = new FileInputStream(f);
//        while (true) {
//            int a = fis.read();
//            System.out.println(a);
//        }

    }
}
